Vue.component("vote",{
    template: `
<div>
    <div id="header" class="wrap">
        <img src="../images/logo.gif" />
    </div>
    <div id="navbar" class="wrap">
        <div class="profile">
            您好，a
            <span class="return"><a href="../index.html">返回列表</a></span>
            <span class="addnew"><a href="../add.html">添加新投票</a></span>
        </div>
        <div class="search">
            <form method="post" action="#">
                <input type="text" name="keywords" class="input-text" value=""/><input type="submit" name="submit" class="input-button" value="" />
            </form>
        </div>
    </div>    
    <slot>中间主体部分(默认插槽)</slot>
    <div id="footer" class="wrap">
        源辰信息 &copy; 版权所有
    </div>
</div>
    `
})